package api;

import java.security.NoSuchAlgorithmException;
import java.util.HashMap;

import beans.SignsBean;
import helper.JsonHelper;
import helper.WebHelper;

/**
 * 签名Api
 * */
public class SignApi {
	public SignsBean GetSigns(String url, String companyNo, String token) throws NoSuchAlgorithmException {
		HashMap<String, String> headers = WebHelper.GetHeaders(companyNo, token);
		String res = WebHelper.SendGet(url,  "", headers);
		SignsBean info = JsonHelper.convertFromJsonToObject(res, SignsBean.class);
		return info;
	}
}
